package com.rjj.wlqq.pdf;

public class PDFFactory {

    public static PDF getPDF(Class<?> p){
        PDF pdf = null;
        try {
            pdf = (PDF)p.newInstance();
        } catch (InstantiationException | IllegalAccessException e) {
            e.printStackTrace();
        }
        PDFProxy<PDF> pdfProxy = new PDFProxy<>(pdf);
        return (PDF)pdfProxy.getInstance();
    }
}
